/**
 * 登录页面样式
 */
.login-container {
    padding: 40px 30px;
    height: 100vh;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
    justify-items: center;
    background-color: #f5f5f5;
    background-size: cover;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-title {
    font-weight: bold;
    color: #000;
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
}

.login-content {
    display: flex;
    width: 80%;
    height: fit-content;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 32%;
    background-color: #f5f5f5;
    padding: 20px;
    margin-bottom: 12%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-type-switch {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    background: #f5f5f5;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 10px;
}

.type-button {
    flex: 1;
    margin: 0 10px;
    background-color: #f5f5f5;
    border: #b0aaaa 1px solid;
    border-radius: 10px;
    padding: 6px 0;
    line-height: 1.5;
}

.type-button.active {
    background-color: #1989fa;
    color: #fff;
}

.login-form {
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 5%;
    margin-right: 5%;
}

.input-group {
    width: calc(100% - 40px);
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
}

.input-label {
    color: #666;
    display: flex;
    justify-content: flex-start;
}

.login-input {
    flex: 1;
    height: 66px; /* 改为像素值以确保合适的高度 */
    border: 1px solid #b0aaaa;
    border-radius: 8px;
    padding: 0 15px;
    box-sizing: border-box;
    line-height: 40px;
    display:flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.code-input-wrapper {
    display: flex;
    gap: 8px; /* 增加间距，使布局更美观 */
    align-items: center; /* 确保子元素在垂直方向上居中对齐 */
    height: 66px; /* 与输入框高度一致 */
    width: 100%;
}
.code-input {
    flex: 1;
    height: 66px; /* 明确设置与父容器相同的高度 */
}
.required {
    color: #ff4d4f;
    margin-right: 2px;
}
.input-hint {
    color: #ff4d4f;
    padding: 0;
    margin-top: 3px;
    display: flex;
    justify-content: flex-start;
}

.code-button {
    width: fit-content;
    height: 66px; /* 与login-input高度保持一致 */
    border: none;
    color: #1890ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    line-height: 66px; /* 与高度保持一致 */
    flex-shrink: 0; /* 防止按钮被压缩 */
}

.code-button.disabled {
    border-color: none;
    color: #ff4d4f;
}

.login-button {
    width: calc(100% - 40px);
    height: 60px;
    color: #fff;
    border: none;
    background-color: #1aad19;
    border-radius: 8px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1aad19;
    margin-left: 20px;
    margin-right: 20px;
}

.password-actions {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password {
    color: #1aad19;
    background: none;
    border: none;
    padding: 0;
}

.wechat-login-section {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.divider-text {
    display: block;
    text-align: center;
    color: #999;
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 120px;
    height: 1px;
    background: #ddd;
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}

.wechat-login-button {
    width: 100%;
    height: 60px;
    color: #fff;
    border: none;
    border-radius: 8px;
    display: flex;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
    background-color: #1aad19;
}

.wechat-icon {
    width: 28px;
    height: 28px;
    margin-right: 10px;
}

.register-section {
    margin-top: 20px;
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.register-link {
    color: #1aad19;
    margin-left: 5px;
}

.login-tips {
    color: #999;
    margin-top: 10px;
    text-align: center;
}

.tip-link {
    color: #1aad19;
}


.register-header {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 10px;
}

.register-title {
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 2px;
}

.register-subtitle {
  color: #FF0000;
  font-weight: bold;
}

.login-link {
  text-align: center;
  color: #1aad19;
  text-decoration: none;
  margin-top: 10px;
}

.register-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.register-form {
  width: 88%;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
  margin-left: 5%;
  margin-right: 5%;
  margin-top: 10px;
}

/* 微信授权获取手机号按钮样式 */
.wechat-phone-button {
  width: 100%;
  height: 40px;
  color: #fff;
  border: none;
  border-radius: 8px;
  display: flex;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  background-color: #1989fa;
}
